﻿using System.Collections.Generic;
using UnityEngine;

public class MyBehaviour : MonoBehaviour
{
    BindableProperty<int> property = new BindableProperty<int>();

    BindableList<int> bindable = new BindableList<int>();

    void PropertyChange(int oldValue, int newValue) { }

    void DataChange(List<int> list) { }

    void Start()
    {
        property.Subscribe(PropertyChange);
        property.IsForce = true;
        property.Property = 1;

        bindable.Subscribe(DataChange);
        bindable.Add(1, true);
    }

    void Reset()
    {

    }

    void OnGUI()
    {

    }

    void OnEnable()
    {

    }

    void OnDisable()
    {

    }

    void OnDestroy()
    {

    }

    void LateUpdate()
    {

    }

    void FixedUpdate()
    {

    }

    void Awake()
    {

    }

    void OnBecameVisible()
    {

    }

    void OnBecameInvisible()
    {

    }

    void Update()
    {

    }
}